package com.dnxh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dnxh.entity.BasicMeeting;
import com.dnxh.entity.SearchBasicMeetingVo;
import com.dnxh.entity.SendMeetingEmailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhiqiu
 * @since 2022 -04-13
 */
@Mapper
public interface BasicMeetingMapper extends BaseMapper<BasicMeeting> {
	
	/**
	 * Search list.
	 *
	 * @param iPage    the page
	 * @param name     the name
	 * @param exist    to exist
	 * @param location the location
	 * @return the list
	 */
	List<SearchBasicMeetingVo> search(IPage<SearchBasicMeetingVo> iPage,
	                                  @Param ("name") String name,
	                                  @Param ("exist") Integer exist,
	                                  @Param ("location") String location);
	
	/**
	 * 删除
	 *
	 * @param id the id
	 */
	void del(@Param ("id") Long id);
	
	/**
	 * 查询会议发送邮件的列表
	 *
	 * @param id the id
	 * @return the list
	 */
	List<SendMeetingEmailVo> searchMeetingEmail(@Param ("id") Long id);
}
